#include <stdio.h>
#include <dirent.h>
#include <stdlib.h>

int main()
{
	DIR * dir = opendir("../day01");
	if(dir == NULL) perror("opendir") , exit(-1);
	struct dirent * dirent = readdir(dir);
	
	while(dirent)
	{		
		printf("the directory type is :%d , file name is :%s\n" , dirent->d_type , dirent->d_name );
		dirent = readdir(dir);
	}	
	return 0;
}
